/**
 * All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
 *
 * SdProjectProblemActionAuto
 * SD项目问题
 *
 * 修改纪录
 * 2021-12-17 版本：1.0 jiangtao 创建。
 * @version 版本：1.0
 * @author 作者：jiangtao
 * 创建日期：2021-12-17
 */

package com.topscomm.gpm.controller.auto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.gpm.GpmController;
import com.topscomm.gpm.pojo.GpmProjectProblemEntity;
import com.topscomm.gpm.service.IGpmProjectProblemService;
import com.topscomm.pub.vo.ResponseResult;

public class GpmProjectProblemControllerAuto extends GpmController<GpmProjectProblemEntity, IGpmProjectProblemService> {
	/**
	 *
	 * @description:
	 * @param paraMap
	 * @return
	 * @author: jiangtao
	 * @date: 2021-12-17
	 * @modify:
	 */
	@Override
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		super.dataCodeList(paraMap);
		Map<String, Object> codeMap = new HashMap<String, Object>();
		List<Map<String, Object>> stateList = datacodeCache.getCodeListMap("TapApprovalBillState", "", "sortcode");
		codeMap.put("stateList", stateList);
		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("enabledList", enabledList);
		List<Map<String, Object>> sdMilepostOrTaskList = datacodeCache.getCodeListMap("GpmMilepostOrTask", "", "sortcode");
		codeMap.put("sdMilepostOrTaskList", sdMilepostOrTaskList);
		return ResponseResult.ok(codeMap);
	}
}

